home *** CD-ROM | disk | FTP | other *** search
- /* PIMenu_TextMaster Initialize the menu bar */
-
- /* Unit name: PIMenu_TextMaster.c */
- /* Function: This module loads in the menu lists and places them */
- /* into the menubar. */
- /* History: 5/9/91 Original by Prototyper 3.0 */
-
-
- #include "PCommonTextMaster.h" /* Common */
- #include "Common_TextMaster.h" /* Common */
- #include "PUtils_TextMaster.h" /* General Utilities */
- #include "Utils_TextMaster.h" /* General Utilities */
-
- #include "InitMenuTextMaster.h" /* Extra menu init */
-
- #include "PIMenu_TextMaster.h" /* This file*/
-
-
- /* ======================================================= */
-
- /* Routine: Init_My_Menus */
- /* Purpose: Load in the menu lists and initialize the menubar */
-
- void Init_My_Menus()
- {
-
-
-
- ClearMenuBar(); /* Clear any old menu bars */
-
- /* This menu is the APPLE menu, used for About and desk accessories. */
- Menu_Apple = GetMenu(Res_Menu_Apple); /* Get the menu from the resource file */
- InsertMenu (Menu_Apple,0); /* Insert this menu into the menu bar */
- AddResMenu(Menu_Apple,'DRVR'); /* Add in DAs */
-
- Menu_File = GetMenu(Res_Menu_File); /* Get the menu from the resource file */
- InsertMenu (Menu_File,0); /* Insert this menu into the menu bar */
-
- Menu_Edit = GetMenu(Res_Menu_Edit); /* Get the menu from the resource file */
- InsertMenu (Menu_Edit,0); /* Insert this menu into the menu bar */
-
-
- AddExtraMenus(); /* Add any extra menu lists */
-
- DrawMenuBar(); /* Draw the menu bar */
-
- } /* End of procedure Init_My_Menus */
-
-